<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆</title>

<link rel="shortcut icon" type="image/x-icon" href="<s:url value='/images/favicon1.ico' encode='false' includeParams='none' ></s:url>" media="screen" /> 

<style type="text/css">
<!--
body{
	padding:0px; 
	margin:0px;
	background:#FFFFFF;
	background-image: url(<s:url value='/images/1/login/b.gif' encode='false' includeParams='none' ></s:url>);
	background-repeat: repeat-x;
}

div{
	margin:0px;
}

#dldiv{
	background-image:url(<s:url value='/images/1/login/d.gif' encode='false' includeParams='none' ></s:url>);
	margin-top:170px;
	padding:0px; 
	width:514px; 
	height:334px;
	text-align:center
}
#title{
	height:100px;
	text-align:center;
	padding-top:20px;
	
}

#title font{
	font-size:30px;
	letter-spacing:-1px;
	font-family: Arial, Helvetica, sans-serif;
}

#text{
	height:194px;
	padding:0px; 
}

#dltable{
	margin:0px;
}

#dltable input{
	margin-left:10px;
	width:180px;
	height:24px;
	border-width:1px;
	border-color:#CFCECE;
	background-Color:#FFFFFF;
	font-size:20px;
}
.user{
	background-image:url(<s:url value='/images/1/login/user.gif' encode='false' includeParams='none' ></s:url>);
}

.password{
	background-image:url(<s:url value='/images/1/login/password.gif' encode='false' includeParams='none' ></s:url>);
}

.fonttxt{
	font-size:14px;
	font-family: "MS Serif", "New York", serif;
}

.submitdiv{
	margin-left:88px;
	margin-top:20px;
}
-->
</style>
	
<script type="text/javascript">
	
	window.onload = function(){
		document.onkeydown = function(event_e){  
			if(window.event){  
			    event_e = window.event;  
			}  
			var int_keycode = event_e.charCode||event_e.keyCode;  
			if(int_keycode == '13'){
				document.getElementById("login").submit();
			}
		}
	}
	
	
	function trim(str){
		return str.replace(/(^\s*)|(\s*$)/g,"");
	};

	function log() {
		document.getElementById("login").submit();
	}
	
	
</script>
</head>
<body>
	<center>
		<div id="dldiv">
			<div id="title">
				<font><strong>XXXX管理系统</strong>
				</font>
			</div>
			<div id="text">
				<s:form id="login" name="login" action="login" namespace="/sys/security"
					method="post">
					<s:token></s:token>
					<table id="dltable" width="100%" height="100%">
						<tr>
							<td width="32%" height="31" align="right" valign="middle"><font
								class="fonttxt">用户名：</font></td>
							<td width="68%" align="left" valign="middle">
								<input  type="text" name="param.user_code" img="user" 
									onFocus="inputFocus(this);" onBlur="inputBlur(this);" ></input>
							</td>
						</tr>
						<tr>
							<td height="46" align="right" valign="middle"><font
								class="fonttxt">密&nbsp;&nbsp;&nbsp;&nbsp;码：</font></td>
							<td align="left" valign="middle">
								<input  type="password" name="param.password" img="password" 
									onFocus="inputFocus(this);" onBlur="inputBlur(this);" ></input>
							</td>
						</tr>
						<tr>
							<td></td>
							<td valign="middle" align="left"><img class="submitdiv" style="cursor:pointer;"
								src="<s:url value='/images/1/login/submit.gif' encode='false' includeParams='none' ></s:url>" onclick="log();"></img></td>
						</tr>
					</table>
				</s:form>
			</div>
		</div>
	</center>
</body>
</html>